﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace XFGameFramework
{
    public static class ComponentExtrensions
    {

        // Fix编码


        /// <summary>
        /// 判断组件是否被销毁
        /// </summary>
        /// <param name="component"></param>
        /// <returns></returns>
        public static bool IsDestroy(this Component component) 
        {
            if(component == null || component.ToString() == "null")
                return true;

            return false;
        }
         
    }

}

